package com.vf.admin.platform.entity;


import com.vf.admin.common.db.annotation.Column;
import com.vf.admin.common.db.annotation.NoColumn;
import com.vf.admin.common.db.annotation.Table;

import java.io.Serializable;
import java.util.List;

/**
 * 组织机构
 */

@Table(name="bt_organ")
public class Organ implements Serializable {
    private static final long serialVersionUID = 1L;
    @Column(length=10,name="id",index=true)
    private Integer id;
    private String title;//组织结构名称
    private Integer pid;//父id
    private Integer states;//状态 状态 1：是  其它：否
    private String comments;//备注
    private Integer sorts;//排序值

    @NoColumn
    private String pname;//上级组织机构名称
    @NoColumn
    public List<Organ> children;//子菜单集合

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getStates() {
        return states;
    }

    public void setStates(Integer states) {
        this.states = states;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public Integer getSorts() {
        return sorts;
    }

    public void setSorts(Integer sorts) {
        this.sorts = sorts;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<Organ> getChildren() {
        return children;
    }

    public void setChildren(List<Organ> children) {
        this.children = children;
    }
}
